package com.itemdoc.organ.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 路径url
 */
@Controller
public class AuthController {

	@Autowired
	public HttpSession session;

	/**
	 * @date 首页
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public String index(ModelMap map) {
		return "index";
	}
	/**
	 * @date 登录
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "/login", method = RequestMethod.GET)
	public String login(ModelMap map) {
		return "login";
	}
	/**
	 * @date 首页
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String head(ModelMap map) {
		return "index";
	}
	/**
	 * @date 文件上传
	 * @param map
	 * @param req
	 * @return
	 */
	@RequestMapping(value = "/upload", method = RequestMethod.GET)
	public String upload(ModelMap map, HttpServletRequest Request) {
		return "upload";
	}
	/**
	 * @date 文件下载
	 * @param map
	 * @param req
	 * @return
	 */
	@RequestMapping(value = "/download", method = RequestMethod.GET)
	public String download(ModelMap map, HttpServletRequest Request) {
		return "download";
	}
}
